<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
	<%@include file="../../common/Include_input_head.jsp" %>
	  <script type="text/javascript" src="${basePath}/clientui/js/form/multiselect.js"></script>
    <title>报表新增</title>
    
	<script type="text/javascript">
        detailPageStyle();
	    validate_required_fields = [
			{fieldId:"lmmc", message:"栏目名称！", mustMatch: true}
		];

		function submitForm(){
			if(isValidateForm())
				super_doSave(true);
		}


	</script>
	<link rel="stylesheet" type="text/css" href="<s:property value="basePath"/>/resources/css/webface.css">
  	<base target="_self">
  </head>
  
<body style="text-align:center;">
  <div class="box1" >
	  <s:form name="theform" method="post" theme="simple" >
		<s:hidden name="tfrontdesknews.wid" />
		<s:hidden name="servicestate" value="%{#request.servicestate}"/>
	 	<fieldset> 
		　 <legend>新增前台栏目描述</legend>
		   <table width="100%" border="0" align="center">
		  	<tr>
		  		<td style="text-align: right">数据源：</td>
		  		<td colspan="3">
					<s:select id="code" name="tfrontdesknews.code" list="DBCode" listKey="id" listValue="caption" cssClass="default" autoWidth="true" cssStyle="width:100px" />
					<label style="color:red">*</label>
		  		</td>
				<td></td>
		  	</tr>
		  	<tr>
		  		<td style="width:10%;text-align: right">栏目名称：</td>
		  		<td style="width:15%">
					<s:textfield id="lmmc" name="tfrontdesknews.lmmc" maxlength="150" size="50" />
					<label style="color:red">*</label>
		  		</td>
				<td></td>
		  	</tr>
		  	<tr>
		  		<td style="width:10%;text-align: right">查询SQL：</td>
		  		<td style="width:15%">
		  			<s:textarea id="querysql" name="tfrontdesknews.querysql" maxlength="1000" rows="3" cols="100"  cssClass="default"  cssStyle="width: 390px;"/>
		  		 	<label style="color:red">*</label>
		  		</td>
				<td></td>
		  	</tr>
			<tr>
			     <td style="width:10%;text-align: right">更新SQL：</td>
				 <td style="width:15%">
					   <s:textarea id="updatesql" name="tfrontdesknews.updatesql" maxlength="1000" rows="3" cols="100"  cssClass="default"  cssStyle="width: 390px;"/>
			     <label style="color:red">*</label>
			     </td>
				 <td></td>
			   </tr>
			 <tr>
			    <td style="text-align: right">位置：</td>
				<td colspan="3">
				   <s:select id="weiz" name="tfrontdesknews.weiz" list="getSysCode('news_wz')" listKey="id" listValue="caption" headerKey="" headerValue="----请选择-----" cssClass="default" autoWidth="true" cssStyle="width:100px" />
				   <label style="color:red">*</label>
				</td>
				 <td></td>
			   </tr>
		  	<tr>
		  		<td style="width:10%;text-align: right">说明：</td>
		  		<td style="width:15%">
		  			<s:textarea id="shuom" name="tfrontdeskNews.shuom" maxlength="150" rows="3" cols="100" cssClass="default"  cssStyle="width: 390px;"/>
		  		</td>
				<td></td>
		  	</tr>
			 <tr>
				 <td align="right" nowrap="nowrap">是否启用：</td>
				 <td align="left">
			         <s:radio cssClass="validate[required] radio" name="tfrontdesknews.state" list="#{1:'启用', 0:'禁用'}"/>
				     <label style="color:red">*</label>
				 </td>
				 <td></td>
			 </tr>
		   </table>
		</fieldset>
	  </s:form>
  </div>
  <div class="padding_top10">
	<table class="tableStyle" transMode="true">
		<tr>
			<td colspan="4">
				<input type="button" id="ysSaveButton" value=" 保 存 " onclick="submitForm()"/>
				<input type="button" value=" 关 闭 " onclick="parent.closeEntityWindow()"/>
				<s:if test="actionErrors.size()>0 || actionMessages.size()>0 || fieldErrors.size()>0">
						<span id="SystemErrorMessage" style="top: 20px">
							<s:actionerror cssStyle="color:red"/>
							<s:actionmessage cssStyle="color:blue"/>
							<s:fielderror/>
						</span>
				</s:if>
			</td>
		</tr>
	</table>
  </div> 
</body>
</html>
